import type {ITableHerader} from '../common/table'
interface Conservator extends ITableHerader{
    type?:string,
    event?:string,
    buttons?:any[],
    formatter?:(row:any)=>any
}

const tableHeader:Conservator[]=[
    {
        label:'管理员名称',
        prop:'admin_name',
    },
    {
        label:'部门',
        prop:'department',
    },
    {
        label:'真实姓名',
        prop:'real_name',
    },
    {
        label:'手机号',
        prop:'mobile',
    },
    {
        label:'邮箱',
        prop:'email',
    },
    {
        label:'角色',
        prop:'role',
    },
    {
        label:'备注',
        prop:'remarks',
    },
    {
        label:'是否启用',
        type:'switch',
        event:'changeSwitch'
    },
    {
        label:'操作',
        type:'button',
        width:'250',
        buttons:[
            {
                text:'详情',
                event:'particulars',
                type:'info',
                show:true
            },
            {
                text:'修改',
                event:'updata',
                type:'success',
                show:true
            },
            {
                text:'删除',
                event:'delete',
                type:'danger',
                show:true
            }
        ]
    },
]

export {
    type Conservator,
    tableHeader
}